package com.devilvan.betrice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Evad.Wu
 * @Description 管理模块 启动类
 * @date 2023-08-11
 */
@EnableAsync
@EnableCaching
@EnableJpaAuditing
@EnableAspectJAutoProxy
@EnableTransactionManagement
@EntityScan(basePackages = "com.devilvan.betrice.*")
@MapperScan(basePackages = "com.devilvan.betrice.*")
@SpringBootApplication(scanBasePackages = "com.devilvan.betrice")
@EnableJpaRepositories(basePackages = "com.devilvan.betrice.*")
public class AdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }
}
